/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.ubbcluj.dbmanagementserver.model;

import java.util.List;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlType;

/**
 *
 * @author Bea
 */
@XmlType
public class Reference {

    private String referenceTable;
    private List<String> referencedAttributes;

    public Reference(String referenceTable, List<String> referencedAttributes) {
        this.referenceTable = referenceTable;
        this.referencedAttributes = referencedAttributes;
    }

    public String getReferenceTable() {
        return referenceTable;
    }

    public void setReferenceTable(String referenceTable) {
        this.referenceTable = referenceTable;
    }

    public List<String> getReferencedAttributes() {
        return referencedAttributes;
    }

    @XmlElementWrapper
    @XmlElement(name = "referencedAttribute")
    public void setReferencedAttributes(List<String> referencedAttributes) {
        this.referencedAttributes = referencedAttributes;
    }

}
